<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String nickname = session.getAttribute("nickname").toString();
	String checkHome = session.getAttribute("countIndexOfHome").toString();   
	
	/*initialize*/
	if(checkHome.equals("0")){
	/*get the request at the fist tiem*/
	String fans = request.getParameter("fans");
	String focus = request.getParameter("focus");
	/*set at first*/
	session.setAttribute("Fans",fans);
	session.setAttribute("Focus",focus);
	
	session.setAttribute("countIndexOfHome","1");
	
	System.out.println(nickname+fans+focus+"home.jsp"+"0");
	}
	
	/*update the fans and focus can not be counted and update*/
	String Fans = session.getAttribute("Fans").toString();
	String Focus = session.getAttribute("Focus").toString();
	
	
	
	System.out.println(nickname+Fans+Focus+"home.jsp"+"1");	
	//System.out.println(Focus + "focus"+"111111111111111111");
	//System.out.println(Fans + "Fans"+"2222222222222222222");
%>
<body>

<table width="1228" border="0" cellspacing="0" style="word-break:break-all;">
  <tr>
    <td width="230" height="503">&nbsp;</td>
    <td valign="top"><form method="post" action="condbwb.jsp" name="condbwb"/><table width="763" border="0" cellspacing="0" style="word-break:break-all;">
      <tr>
        
        
        <td height="139" colspan="2" align="center" valign="top"><jsp:include flush="true" page="title.jsp"/></td>
      </tr>
      <tr>
        <td height="142" align="center" valign="bottom" background="file:///C|/Users/Administrator/Documents/hpp/background.jpg"><textarea name="statement" cols="50" textfield._height="10" textfield._width="20" rows="6"></textarea></td>
        <td width="300" rowspan="2"><table width="300" border="0">
          <tr>
            <td width="92" rowspan="2">&nbsp;<img src="http://pic.cnblogs.com/face/u160412.jpg" alt="" /></td>
            <td width="192" height="47">nickname:<%=nickname%>&nbsp;<input type="hidden" name="nickname" value=<%=nickname%>/></td>
          </tr>
          <tr>
            <td height="48">fans:<%=Fans%><input type="hidden" name="fans" value=<%=Fans%>/>&nbsp;focus:<%=Focus%><input type="hidden" name="focus" value=<%=Focus%>/>&nbsp;</td>
          </tr>
          <tr><td><%
			try{
				String strName = session.getAttribute("nickname").toString();
				
			
					if(strName != null){
						out.println("Hello <font color=\"red\">" + strName + "</font> !"); }
						out.println("&nbsp;</td><td>");
						if(strName != null){
							out.println("<a href=\"logout.jsp\">logout</a>"); }
			}catch(Exception e){
			e.printStackTrace();
			}%>
		</td></tr>
			
        </table></form></td>
      </tr>
      <tr>
        <td width="459" height="47" align="center" valign="top" background="file:///C|/Users/Administrator/Documents/hpp/loginbackground.jpg">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="file:///C|/Users/Administrator/Documents/hpp/123.png" width="100" height="30" onclick="javascript:window.document.condbwb.submit()"/></td>
        </tr>
    </table>
        <table width="762" border="1" cellspacing="0">
          <tr>
            
            
            
            <td width="560" height="169" valign="top"><jsp:include flush="true" page="roll.jsp"/></td>
            <td width="192" valign="top"><table width="192" border="0" cellspacing="0">
              <tr>
                <td width="190" height="38" align="center" valign="middle"><form method="post" action="search.jsp">
                  <label>
                    <input type="submit" name="Submit" value="search" />
                    </label>
                </form></td>
              </tr>
              
              
            </table></td>
          </tr>
      </table></td>
    <td width="230">&nbsp;</td>
  </tr>
</table>
</body>
</html>
